{% include "../public/min-header.html" %}

<div class="wrapper">
    {% include "../public/breadcrumb.html" %}
    <section class="content">
        <!-- Main content -->
        <div class="container-fluid">
            <div class="pull-right">
                <a href="{{helper.pathFor('adstin',{inc_type:inc_type})}}" data-toggle="tooltip" title=""
                    class="btn btn-default" data-original-title="返回"><i class="fa fa-reply"></i></a>
            </div>
            <div class="panel panel-default">
                <div class="panel-body ">
                    <ul class="nav nav-tabs">
                        {% for k,vo in group_list %}
                        <li {% if k == inc_type %}class="active" {% endif %}><a href="javascript:void(0)"
                                data-url="{{helper.pathFor('adstin',{inc_type:k})}}" data-toggle="tab"
                                onclick="goset(this)">{{vo}}</a></li>
                        {% endfor %}
                    </ul>
                    <!--表单数据-->
                    <form method="post" id="submitForm">
                        <!--通用信息-->
                        <div class="tab-content col-md-10" style="padding:20px 0px;">
                            <div class="tab-pane active" id="tab_tongyong">

                                {% include "./" + inc_type + ".html" %}

                            </div>
                        </div>
                    </form>
                    <!--表单数据-->
                </div>
            </div>
        </div>
    </section>
</div>
<script type="text/javascript">
    $('.send_msg').click(function () {
        var url = $(this).attr('data-url');
        layer.open({
            type: 2,
            title: '短信测试',
            shadeClose: true,
            shade: 0.5,
            area: ['40%', '41%'],
            content: url
        });
    });

    function goset(obj) {
        window.location.href = $(obj).attr('data-url');
    }
</script>
{% include "../public/main-footer.html" %}